﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopCouponDetail")]
    public class CouponDetail : BaseObject
    {
        //begin
        public CouponDetail()
        {}
        public CouponDetail(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _BuyerNick;
        public string BuyerNick
        {
            get
            {
                return _BuyerNick;
            }
            set
            {
                SetPropertyValue("BuyerNick", ref _BuyerNick, value);
            }
        }
        private string _Channel;
        public string Channel
        {
            get
            {
                return _Channel;
            }
            set
            {
                SetPropertyValue("Channel", ref _Channel, value);
            }
        }
        private string _State;
        public string State
        {
            get
            {
                return _State;
            }
            set
            {
                SetPropertyValue("State", ref _State, value);
            }
        }
        private long _CouponNumber;
        public long CouponNumber
        {
            get
            {
                return _CouponNumber;
            }
            set
            {
                SetPropertyValue("CouponNumber", ref _CouponNumber, value);
            }
        }
        //end
    }
}
